home *** CD-ROM | disk | FTP | other *** search
/ Computer Life: SuperPac / SuperPac (Computer Life Magazine)(Ziff-Davis)(1995).ISO / pc / demos / nile / senet.exe / senet.DXR / 00024_Main Game Loop.ls < prev    next >
Encoding:
Text File  |  1995-05-04  |  375 b   |  17 lines

  1. on exitFrame
  2.   global theSenetGame
  3.   if not gameOver(theSenetGame) then
  4.     if the playerMoving of theSenetGame = the computerPlayer of theSenetGame then
  5.       makeComputerMove(theSenetGame)
  6.     end if
  7.     go(the frame)
  8.   else
  9.     resetGame(theSenetGame)
  10.     repeat with x = 1 to 48
  11.       puppetSprite(x, 0)
  12.     end repeat
  13.     StartTheGame()
  14.     go("StartGame")
  15.   end if
  16. end
  17.